# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnetfilter_queue
pkgver=1.0.5
pkgrel=1
pkgdesc="API to packets that have been queued by the kernel packet filter"
url="https://www.netfilter.org/projects/libnetfilter_queue/"
arch="all"
license="GPL-2.0-or-later"
makedepends="libnfnetlink-dev libmnl-dev linux-headers"
subpackages="$pkgname-dev"
source="https://www.netfilter.org/projects/libnetfilter_queue/files/libnetfilter_queue-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="732a44b602e5efaa4f5582ea25ff8f5ec8f4dca5c0e725cd93fe2d441db80416b25c6018147be90acb262d7428eb5b21b3f7b5920e612d115061ec6a19d67f85  libnetfilter_queue-1.0.5.tar.bz2"
